﻿using HtmlAgilityPack;
using System;
using System.Collections.Generic;
using System.Text;

namespace WhatCatch.Core
{
    /// <summary>
    /// 请求上下文
    /// </summary>
    public class RequestContext
    {
        /// <summary>
        /// 请求url
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 请求页面的html
        /// </summary>
        public string Html { get; set; }
        /// <summary>
        /// 请求页面的HtmlDocument
        /// </summary>
        public HtmlDocument HtmlDocument { get; set; }

        /// <summary>
        /// 列表页数据项html
        /// </summary>
        public string ListHtml { get; set; }
        /// <summary>
        /// 列表页中数据项url列表
        /// </summary>
        public List<string> ItemUrls { get; set; }

        /// <summary>
        /// 列表页分页html
        /// </summary>
        public string PageHtml { get; set; }
        /// <summary>
        /// 列表页中分页url列表
        /// </summary>
        public List<string> PageUrls { get; set; }

        /// <summary>
        /// 明细页内容html
        /// </summary>
        public string DetailHtml { get; set; }
    }
}
